﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Harkon.AppServer.cOne.Registry;
using ComponentC;
using System.Reflection;
using System.IO;
using System.Diagnostics;
using Harkon.AppServer.cOne.Service;
using System.Threading;

namespace ComponentA
{
    public class WillUse : AbstractService, IWillUse
    {
        public IDoStuff Others { get; set; }
        
        #region WillUse Members

        public string FooBar(string two)
        {
            Console.WriteLine("Called ComponentA.WillUse({0})", two);
            SomeBusinessObject obj = new SomeBusinessObject { Name = "test", Timestamp = DateTime.Now };
            Console.WriteLine("Calling ComponentC.IDoStuff({0})", obj);
            Console.WriteLine(Others.Foo(obj));
            return "WillUse->***";
        }

        #endregion
    }
}
